package com.bed.lovewithpatientbed.service;

import com.bed.lovewithpatientbed.common.bean.LayUiPageBean;
import com.bed.lovewithpatientbed.pojo.Employee;
import com.bed.lovewithpatientbed.pojo.Malfunction;
import com.bed.lovewithpatientbed.pojo.PageBean;

import java.util.Date;
import java.util.List;

/**
 * @author myp
 * @version 1.0.0
 * @ClassName MalfunctionService.java
 * @Description 故障记录Service接口类
 */
public interface MalfunctionService {

    /**
     * @title 新增故障记录
     * @description 返回值为数值，确认是否新增成功
     * @author myp
     * @updateTime
     * @throws
     * @param malfunction
     */
    Integer saveMalfunction(Malfunction malfunction);

    /**
     * @title 修改故障记录
     * @description 返回值为数值，确认是否修改成功
     * @author myp
     * @updateTime
     * @throws
     */
    Integer updateMalfunction(Malfunction malfunction);
    
    /**
     * @title 故障记录列表查询列表查询
     * @description 条件组合查询，分页查询；
     * @author myp 
     * @updateTime   
     * @throws 
     */
    List<Malfunction> selectMalfunctionList(LayUiPageBean pageBean, Malfunction malfunction, Date staData, Date endDate);
    /**
     * @title 查找故障记录
     * @description 根据故障编号查找
     * @author myp
     * @updateTime
     * @throws
     */
    Malfunction selectMalfunction(Integer malfunctionId);
    /**
     * @title 增加故障维修人员
     * @description
     * @author myp
     * @updateTime
     * @throws
     */
    Integer repairMalfunction(Malfunction malfunction, Employee employee);

    Integer getCount(Malfunction malfunction,Date staData , Date endDate);
}
